﻿namespace com.stifel.Exceptions.SharePointExceptions
{
    using System;

    [Serializable]
    public class SharePointListDoesNotContainSpecifiedFieldException : Exception
    {
        #region Constructors

        public SharePointListDoesNotContainSpecifiedFieldException( )
            : base("The SharePoint list does not contain the specified field.")
        {
        }

        public SharePointListDoesNotContainSpecifiedFieldException( string internalName )
            : base(string.Format( "The SharePoint list does not contain the specified field '{0}'.", internalName ))
        {
        }

        #endregion Constructors
    }
}